package com.laihuichuxing.order.dao;

import org.apache.ibatis.annotations.Param;

/**
 * Description: 司机订单dao
 *
 * @author YangGuang
 * @since: 1.0
 * Create Date Time: 2018/10/12 14:03
 * Update Date Time:
 */
public interface DriverOrderDao {

    /**
     * Description: 查询司机id
     * @param driverPhone 司机手机号
     * @return 司机id
     * @author: YangGuang
     * Create Date Time: 2018/10/12 14:04
     * Update Date Time:
     */
    String selectDriverId(String driverPhone);
    /**
     * Description: 修改订单表，司机Id，订单状态
     * Author: Qinxuefeng
     * Version: 1.0
     * Create Date Time: 2018/10/16 9:25.
     * Update Date Time:
     */
    int updateWyOrder(@Param("orderId") String orderId, @Param("driverId") String driverId);
     /**
      * Description: 修改司机表，接单状态
      * Author: Qinxuefeng
      * Version: 1.0
      * Create Date Time: 2018/10/16 9:59.
      * Update Date Time: 
      */
    int updateWyDriver(@Param("phone") String phone);
    /**
     * Description: 查询接单状态
     * @param mobile 司机手机号
     * @return 接单状态
     * @author: YangGuang
     * Create Date Time: 2018/10/17 15:07
     * Update Date Time:
     */
    String selectAcceptFlag(String mobile);
     /**
      * Description: 查询司机手机号
      * Author: Qinxuefeng
      * Version: 1.0
      * Create Date Time: 2018/10/17 16:10.
      * Update Date Time: 
      */
    String selectDriverPhone(String orderId);
    /**
     * Description: 修改约车标识
     * @param  orderNo 新订单编号
     * @param  orderId 订单编号
     * @param  i 约车标识
     * @author QinXueFeng
     * Create Date Time: 2018/11/15 14:21
     * Update Date Time:
     */
    void updateFlage(@Param("orderNo")String orderNo,@Param("orderId")String orderId, @Param("flag")int i);
    /**
     * Description: 修改约车标识
     * @param  cityCode 4位行政编码
     * @param  adcode 6位行政编码
     * @author QinXueFeng
     * Create Date Time: 2018/11/15 14:21
     * Update Date Time:
     */
    Integer findCaocaoCity(@Param("cityCode")String cityCode, @Param("adcode") String adcode);
}
